import request from '@/utils/request'

export function getListBybuinessid(query) {
  return request({
    url: '/system/upload/getList',
    method: 'get',
    params: query
  })
}

export function delDocumentfile(eqsn) {
  return request({
    url: '/system/upload/' + eqsn,
    method: 'delete'
  })
}

//查询附件数据
export function showImage(id) {
  return request({
    url: '/system/upload/imageView/' + id,
    method: 'get',
    responseType: 'blob'
  })
}

//查询附件数据
export function showView(id) {
  return request({
    url: '/system/upload/view/' + id,
    method: 'get',
    responseType: 'blob'
  })
}

//查询附件数据
export function getDocument(id) {
  return request({
    url: '/system/upload/get/' + id,
    method: 'get'
  })
}


